home *** CD-ROM | disk | FTP | other *** search
- <%@ page language="java" import="
- java.util.*,
- com.jproxy.site.ejbeans.interfaces.*,
- com.jproxy.site.*"
- %>
- <jsp:useBean id="customeredit" scope="request" class="com.jproxy.site.customers.CustomerEdit"/>
- <%
- customeredit.request(pageContext);
- if (!customeredit.ses.isLoggedIn())
- {
- %>
- <jsp:forward page="login.jsp">
- </jsp:forward>
- <%
- }
- customeredit.ses.setNewHit(pageContext, "hits", "Customer Account Edit", null);
- %>
-
- <%
- // if any of submit buttons was hit forward away
- //if (customeredit.getParameter("submit") != null && !customeredit.getParameter("submit").equals(""))
- if(customeredit.forwardPage.length()>0)
- {
- %>
- <jsp:forward page="<%=customeredit.forwardPage%>">
- </jsp:forward>
- <%
- }
- %>
-
- <!-- HEADER -->
- <jsp:include page="header.jsp" flush="true">
- <jsp:param name="pageId" value="edit_customer"/>
- </jsp:include>
- <br>
- <table class="h8Verdana" cellpadding="5" width="100%" border="0">
- <!-- Prolog -->
- <tr>
- <td>
- <p>
- <%
- if (customeredit.key.trim().equalsIgnoreCase("new"))
- {
- %>
- Please enter new customer information. The customer name is required and
- must not match any of already existing customers.
- <p>
- Once you will have created a customer you will be able to purchase
- software licenses for that customer.
- <p>
- <%
- } else
- if (customeredit.key.trim().equalsIgnoreCase("edit"))
- {
- %>
- This page allows you to update contact information of yours already existing customer. Please
- note, that this page is only available for those customers who have no licenses purchased
- toward them.
- <%
- }
- %>
- <form method=POST action=customer-edit.jsp>
- <table class="h9Verdana" border="0" bgcolor="9c9cff" cellpadding="1" cellspacing="0">
- <tr>
- <td>
- <%
- if (customeredit.key.trim().equalsIgnoreCase("new"))
- {
- %>
- Create a customer
- <%
- }
- else
- if (customeredit.key.trim().equalsIgnoreCase("edit"))
- { %>
- Update a customer
- <% }%>
- </td>
- </tr>
- <tr>
- <td>
- <table class="h9Verdana" border="0" bgcolor="white" cellpadding="5" cellspacing="1">
-
- <tr class="h8Verdana">
- <td></td>
- <td>
- <font color="553399"><%=customeredit.msg%></font>
- </td>
- </tr>
- <tr class="h8Verdana">
- <td width="35%" align="right">
- <br>
- Customer Name*:
- </td>
- <td align="left">
- <br>
- <%
- if (customeredit.key.trim().equalsIgnoreCase("new"))
- {
- %>
- <input type="text" name="customer-name" size="50" maxlength="80" value="<%=customeredit.customer_name%>">
- <%
- }
- else
- if (customeredit.key.trim().equalsIgnoreCase("edit"))
- { %>
- <input type="text" name="customer-name" size="50" maxlength="80" readonly value="<%=customeredit.customer_name%>">
- <% }%>
-
- </td>
- </tr>
-
- <tr class="h8Verdana">
- <td align="right">
- Email:
- </td>
- <td align="left">
- <input type="text" name="email" size="50" maxlength="80" value="<%=customeredit.email%>">
- </td>
- </tr>
-
- <tr class="h8Verdana">
- <td align="right">
- Location:
- </td>
- <td align="left">
- <textarea wrap="virtual" name="address" cols="45" rows="5"><%=customeredit.address%></textarea>
- </td>
- </tr>
-
- <tr class="h8Verdana">
- <td align="right">
- Telephone:
- </td>
- <td align="left">
- <input type="text" name="phone" size="50" maxlength="60" value="<%=customeredit.phone%>">
- </td>
- </tr>
-
- <tr class="h8Verdana">
- <td align="right">
- Details:
- </td>
- <td align="left">
- <textarea wrap="virtual" name="details" cols="45" rows="5"><%=customeredit.details%></textarea>
- </td>
- </tr>
-
- <tr class="h8Verdana">
- <td align="right">
- </td>
- <td align="right">
- <br>
- <INPUT name=submit style="HEIGHT: 24px; WIDTH: 100" type=submit value="<%=customeredit.buttonSubmit%>">
- <INPUT name=submit style="HEIGHT: 24px; WIDTH: 100" type=submit value="<%=customeredit.buttonCancel%>">
- <INPUT TYPE=HIDDEN NAME="forward" VALUE="<%=customeredit.forward%>">
- <INPUT TYPE=HIDDEN NAME="key" VALUE="<%=customeredit.key%>">
- <INPUT TYPE=HIDDEN NAME="customer-id" VALUE="<%=customeredit.customerID%>">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- <!-- FOOTER -->
- <jsp:include page="footer.jsp" flush="true"/>
-